<template>
	<view class="content">
		<view class="search-box">
			<view class="box">
				<uni-icons class="right-icon" type="search" size="20" color="#7f7f7f"></uni-icons>
			</view>
			<view class="cancel">取消</view>
		</view>
		<view class="search-content">
			<view class="hot">
				<view><text class="hot-title">热搜</text></view>
				<view class="hot-act" v-for="item in act">
					<text>{{item.id}}</text>
					<text style="margin-left: 15rpx;">{{item.actname}}</text>
				</view>
			</view>
			<view class="history">
				<view><text class="history-title">历史搜索</text></view>
				<view class="history-act" v-for="item in act">
					<text>{{item.actname}}</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				act:[
					{
						id:1,
						actname:"五条人"
					},
					{
						id:2,
						actname:"夏加尔的梦与爱情"
					},
					{
						id:3,
						actname:"与光同行"
					},
					{
						id:4,
						actname:"对话达芬奇"
					}
				]
			}
		}
	}
</script>

<style lang="scss">
	.content{
		width: 100%;
		height: 100%;
		
		.search-box{
			display: flex;
			.cancel{
				margin: 30rpx 30rpx 20rpx 20rpx;
				display: inline-block;
				font-size: 35rpx;
				color: #333333;
			}
			.box{
				display: inline-block;
				margin: 30rpx 10rpx 20rpx 30rpx;
				height: 55rpx;
				background-color: #F2F2F2;
				border-radius: 45rpx;
				border: 1px solid #F2F2F2;
				flex: 1;
				.right-icon{
					margin-left: 10rpx;
					margin-top: 30rpx;
				}
			}
		}
		.search-content{
			width: 100%;
			height: 100%;
			bottom: 0;
			// background-color: #F2F2F2;
			.hot{
				margin-left: 40rpx;
				.hot-title{
					line-height: 90rpx;
					font-size: 30rpx;
					color: #333333;
					margin-left: 10rpx;
				}
				.hot-act{
					display: inline-block;
					width: 300rpx;
					margin-top: 10rpx;
					margin-bottom: 10rpx;
				}
			}
			.history{
				margin-left: 40rpx;
				.history-title{
					line-height: 90rpx;
					font-size: 30rpx;
					color: #333333;
					margin-left: 10rpx;
				}
				.history-act{
					display: inline-block;
					margin-right: 20rpx;
					margin-top: 10rpx;
				}
			}
		}
		
	}
</style>
